<div ng-controller="DistributorCtrl" ng-init="checkorderAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/distributor/order">{{'Order'| translate}}</a></li>
        <li class="active">{{'info' | translate}}</li>
    </ul>
    <div class="control-group">
        <label class="control-label v-top">{{'store'| translate}}：</label>
        <div class="controls">
            <store-list ng-model="detailData.store_id" stype="1"></store-list>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'订单状态'| translate}}：</label>
        <div class="controls">
            <div class="zTreeDemoBackground">
                <span ng-show="detailData.order_status == 'S_ORDER_WAIT_PAYMENT'" class="sui-text-info">待支付</span>
                <span ng-show="detailData.order_status == 'S_ORDER_WAIT_CONFIRM'" class="sui-text-info">待确认</span>
                <span ng-show="detailData.order_status == 'S_ORDER_WAIT_DELIVERY'" class="sui-text-success">待发货</span>
                <span ng-show="detailData.order_status == 'S_ORDER_WAIT_RECEIVE'" class="sui-text-danger">待收货</span>
                <span ng-show="detailData.order_status == 'S_ORDER_WAIT_RATE'" class="sui-text-danger">待评价</span>
                <span ng-show="detailData.order_status == 'S_ORDER_COMPLETED'" class="sui-text-danger">订单完成</span>
                <span ng-show="detailData.order_status == 'S_ORDER_CANCEL'" class="sui-text-danger">已作废</span>
            </div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'订单核算状态'| translate}}：</label>
        <div class="controls">
            <div class="zTreeDemoBackground">
                <span ng-show="detailData.status ==1" class="sui-text-info">未审核</span>
                <span ng-show="detailData.status ==2" class="sui-text-success">待结算</span>
                <span ng-show="detailData.status ==3" class="sui-text-danger">已结算</span>
            </div>
        </div>
    </div>
    <div class="control-group" ng-if="detailData.member_id">
        <label class="control-label v-top"> {{'买家'| translate}}：</label>
        <div class="controls">
            <div class="zTreeDemoBackground">
                <!-- {{detailData.member_id}} -->
                 <wxinfo ng-model="detailData.member_id" 　 stye="1"></wxinfo>
            </div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'Orderid'| translate}}：</label>
        <div class="controls">
            <div class="zTreeDemoBackground">
                {{detailData.order_id}}
            </div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'total_payment'| translate}}：</label>
        <div class="controls">
            {{detailData.total_fee}} 元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'payment'| translate}}：</label>
        <div class="controls">
            {{detailData.payment}} 元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'支付金额'| translate}}：</label>
        <div class="controls">
            {{detailData.payment}} 元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'time'| translate}}：</label>
        <div class="controls">
            {{detailData.order_time}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'title'| translate}}：</label>
        <div class="controls">
            {{detailData.title}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'price'| translate}}：</label>
        <div class="controls">
            {{detailData.price}} 元
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'num'| translate}}：</label>
        <div class="controls">
            {{detailData.quantity}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'代理商'| translate}}：</label>
        <div class="controls">
            <wxinfo ng-model="detailData.user_id" stye="1"></wxinfo>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'代理等级'| translate}}：</label>
        <div class="controls">
            <fxgrade-list ng-model="detailData.grade_id" stype="1" ></fxgrade-list>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'产品线'| translate}}：</label>
        <div class="controls">
            <fxproduct-list ng-model="detailData.product_id" stype="1" ></fxproduct-list>
        </div>
    </div>

    <div class="control-group">
        <label class="control-label v-top"> {{'返点比例'| translate}}：</label>
        <div class="controls">
            {{detailData.proportion}}%
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'返点金额'| translate}}：</label>
        <div class="controls">
            {{detailData.return_money}} 元
        </div>
    </div>
    
    <div class="control-group" ng-show="detailData.status == 2">
        <label class="control-label v-top"> {{'审核时间'| translate}}：</label>
        <div class="controls">
            {{detailData.audit_time}} 
        </div>
    </div>

    <div class="control-group" ng-show="detailData.status == 3">
        <label class="control-label v-top"> {{'结算时间'| translate}}：</label>
        <div class="controls">
            {{detailData.clearing_time}}
        </div>
    </div>

    <span ng-if="detailData.status==1">
        <button class="sui-btn btn-primary" ng-click="shenhe(detailData.detail_id)">
            {{'审核'|translate}}
        </button>
    </span>
    
    <!-- <span ng-if="detailData.status==2">
        <button class="sui-btn btn-primary" ng-click="jiesuan(detailData.detail_id)">
            {{'结算'|translate}}
        </button>
    </span> -->
</div>